home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gLevelObject, gSimObject, gTruckObject, gActorList
- startBuffering()
- if the demoFlag of gSimObject = 0 then
- set the tileNum of the blockedCellObj of gTruckObject to 0
- set the tileType of the blockedCellObj of gTruckObject to #BG
- set x to blockCrossings(the cell of gTruckObject, getLast(the recordedMoveList of gSimObject))
- clearAllActors()
- explode(the clickOn)
- puppetPalette(the framePalette)
- go("Grass")
- go(the frame + 1)
- puppetPalette("SimPal", 60)
- updateStage()
- puppetPalette(0)
- predrawSimButtons(gSimObject)
- go(label("Simulator" & string(the level of gLevelObject)))
- end if
- flushBuffer()
- end
-